/**
 * MCMoveDownloadFile.java
 */
package commands.model;
import dataTypes.File;

/**
 * Request to change a position of a download file on the list of download files.
 * @author Michal Kolodziejski
 */
public class MCMoveDownloadFile extends ModelCommand {
	/** A file of which a position is requested to be changed. */
	private File file;
	/** A new file's position. */
	private int position;
	
	
	/**
	 * Constructor
	 * @param file a file of which a position is requested to be changed
	 * @param position a new file's position
	 */
	public MCMoveDownloadFile(File file, int position){
		super(ModelCommandType.MOVE_DOWNLOAD_FILE);
		this.file = file;
		this.position = position;
	}

	/**
	 * @return the file of which a position is requested to be changed
	 */
	public File getFile() {
		return file;
	}

	/**
	 * @return the new file's position
	 */
	public int getPosition() {
		return position;
	}
}
